import store from '@/store'

export default function checkPermission(value) {
  if (value.length > 0) {
    const roles = store.getters && store.getters.buttons
    return roles.includes(value)
  } else {
    return false
  }
}
